package com.lqq.demo9;

public class Cat extends Animal{
    private char sex;

    /*public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }*/

    public Cat() {
    }

    public Cat(String nickName, String color, int age, double weight,char sex) {
        super(nickName, color, age, weight);
        this.sex = sex;
    }

    @Override
    public void print() {
        super.print();
        System.out.println("性别： " + this.sex);
    }
}
